package com.example.lvsuo.mapper.cxg;

import com.example.lvsuo.entity.cxg.FlowName;
import com.example.lvsuo.entity.cxg.vo.FlowNameVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FlowNameMapper {

    @Insert(" insert into flow_name values(null,#{fname},#{createDate}) ")
    void addFlownames(FlowName flowName);


    List<FlowName> getFlowName(FlowNameVo flowNameVo);

    @Select(" select last_insert_id() ")
    String lastById();

    @Delete(" delete from flow_name where id = #{value} ")
    void delFlowName(String fid);

    @Select(" select * from flow_name where id = #{value} ")
    FlowName getFlowNameByid(String id);
}
